from base import Base
from selenium.webdriver.common.by import By

class page1(Base):
    # 兄弟
    def test_gaunzhu(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().resourceId("com.kongfz.app:id/ll_nav1").ChildSelector(index(1))')
        ele=self.find_ele(loc)
        return ele
    def guanzhu(self):
        loc=(By.XPATH,'//android.widget.RelativeLayout[@resource-id="com.kongfz.app:id/rl_nav2"]')
        ele=self.find_ele(loc)
        return ele
    def quxiaoguganzhu(self):
        loc=(By.ANDROID_UIAUTOMATOR,'new UiSelector().text("关注").instance(0)')
        ele=self.find_ele(loc)
        return ele
    def sandian(self):
        loc=(By.ID,'com.kongfz.app:id/tv_navigation')
        ele=self.find_ele(loc)
        return ele
    def quguan(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_name" and @text="取消关注"]')
        ele=self.find_ele(loc)
        return ele
    def pinglu(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_content"]')
        ele=self.find_ele(loc)
        return ele
    def fabiao(self):
        loc=(By.ID,'com.kongfz.app:id/tv_input')
        ele=self.find_ele(loc)
        return ele
    def shuru(self):
        loc=(By.CLASS_NAME,'android.widget.EditText')
        ele=self.find_ele(loc)
        return ele
    def anniu(self):
        loc=(By.ID,'com.kongfz.app:id/tv_publish')
        ele=self.find_ele(loc)
        return ele


    def shijian(self):
        loc=(By.ID,'com.kongfz.app:id/tv_nickname')
        ele=self.find_ele(loc)
        return ele
    def redguan(self):
        loc=(By.XPATH,'//android.widget.TextView[@resource-id="com.kongfz.app:id/tv_attention"]')
        ele=self.find_ele(loc)
        return ele

